﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication5
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        private DataClassesOnlineCollegeManagementDataContext dc = new DataClassesOnlineCollegeManagementDataContext();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                this.ListView1.DataSource = this.dc.news_tbls.Where(a=>a.idlist==4);
                this.ListView1.DataBind();
            }
        }
    }
}